home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / daypop.xml < prev    next >
Text File  |  2002-09-06  |  2KB  |  68 lines

  1. <search function="daypop">
  2.   <name>Daypop</name> 
  3.   <description>
  4.     A current events/weblog/news search engine. Searches News & Weblogs by default.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.       <table class="helpboxDescTable">
  7.           <tr><td>/news</td><td> - </td><td>Search News only.</td></tr>
  8.           <tr><td>/weblogs</td><td> - </td><td>Search Weblogs only.</td></tr>
  9.           <tr><td>/headlines</td><td> - </td><td>Search RSS Headlines only.</td></tr>
  10.       </table>
  11.     <div class="helpboxDescLabels">Examples:</div>
  12.     <table class="helpboxDescTable">
  13.           <tr><td>daypop quick search</td></tr>
  14.       <tr><td>daypop Mars /news</td></tr>
  15.       </table>
  16.   </description>
  17.   <category>Search the Web</category> 
  18.   <link>http://www.daypop.com/</link> 
  19.   <contributor>Rick Olson, Ryan Edwards</contributor>
  20.   
  21.   <form name="daypopf"
  22.         action="http://www.daypop.com/search"
  23.         method="get">
  24.     <input type="hidden" name="q"/> 
  25.     <input type="hidden" name="t" value="a"/> 
  26.   </form>
  27.   
  28.   <script><![CDATA[ 
  29.     function daypop(q)
  30.     {
  31.       var args = parseArgs(q, "news, weblogs, headlines");
  32.       
  33.       if( nullArgs("daypop",q) )
  34.         return false;
  35.       else if( args.switches.length == 1 )
  36.       {
  37.         switch( args.switches[0].name )
  38.         {
  39.           case "news":
  40.             document.daypopf.t.value = "n";
  41.             break;
  42.           case "weblogs":
  43.             document.daypopf.t.value = "w";
  44.             break;
  45.           case "headlines":
  46.             document.daypopf.t.value = "h"
  47.             break;
  48.         }
  49.         document.daypopf.q.value = q;
  50.         submitForm(daypopf);
  51.       }
  52.       else if( args.switches.length > 1 )
  53.         nullArgs("daypop","?");
  54.       else
  55.       {
  56.         document.daypopf.t.value = "a";
  57.         document.daypopf.q.value = q;
  58.         submitForm(daypopf);
  59.       }
  60.     }
  61.   ]]></script>
  62.  
  63.   <copyright>
  64.     Copyright (c) 2002 David Bau
  65.     Distributed under the terms of the
  66.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  67.   </copyright>
  68. </search>